$(function () {
    findTeamLeaderLame()
})

function findTeamLeaderLame() {
let data=myAjax("/point/findTeamLeaderLame","","get");
    data=data.result;
    if(data==0){
        alert("你不是小组长，无权点到！")
        window.open('index.html','_self');
    }else {
        findByName()
    }
}


function findByName() {
    let da={
        name:null,
    }
    let data=myAjax("/point/findByName",da,"post");
    data=data.list;
    let html='';
    for (let i=0;i<data.length;i++){
        html+='        <tr>\n' +
            '            <td>'+data[i].id+'</td>\n' +
            '            <td>'+data[i].code+'</td>\n' +
            '            <td>'+data[i].typeName+'</td>\n' +
            '            <td>'+data[i].name+'</td>\n' +
            '            <td>'+data[i].sex+'</td>\n' +
            '            <td>'+data[i].age+'</td>\n' +
            '            <td>'+data[i].education+'</td>\n' +
            '            <td>'+data[i].university+'</td>\n' +
            '            <td><div class="biaos">'+data[i].naative+'</div></td>\n' +
            '            <td><div class="biaos">'+data[i].address+'</div></td>\n' +
            '            <td>'+data[i].phone+'</td>\n' +
            '            <td>'+data[i].otherphone+'</td>\n' +
            '            <td>'+data[i].groupCode+'</td>\n' +
            '        </tr>';
    }
    $("#userFandAll").html(html);
}